package org.phoenixframework.common.tools;

import org.springframework.http.HttpStatus;

/**
 * Created by IntelliJ IDEA.
 *
 * @author doublelife
 * Date: 2019/3/20
 * Time: 15:45
 */
public enum ResultStatus {

    /**
     * 自定义成功
     */
    SUCCESS(200, ResultKey.SUCCESS),

    /**
     * 自定义失败
     */
    FAIL(500, ResultKey.FAIL);

    private int code;

    private String message;

    ResultStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
